﻿using System.Windows.Controls;
using MMK.Paket_Tracker.Runtime.Interfaces;
using MMK.Paket_Tracker.GUI.ViewModels;
using System.Collections.Generic;
using System;

namespace MMK.Paket_Tracker.GUI.Views
{
    /// <summary>
    /// Interaction logic for SendPacketData.xaml
    /// </summary>
    public partial class SendPacketData : UserControl, INamedUserControl
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="SendPacketData"/> class.
        /// </summary>
        public SendPacketData()
        {
            InitializeComponent();
            viewModel = new SendPacketDataViewModel(this);
            this.DataContext = viewModel.Data;
        }


        /// <summary>
        /// Gets the name of the view.
        /// </summary>
        /// <value>The name of the view.</value>
        public string ViewName
        {
            get
            {
                return "Abschluss";
            }
        }

        /// <summary>
        /// Sets the error info.
        /// </summary>
        /// <value>
        /// The error info.
        /// </value>
        public Dictionary<String, String> ErrorInfo
        {
            set { this.ForwardButton.ToolTip = value.ToString(); }
        }


        private SendPacketDataViewModel viewModel;
       
    }
}
